<template>
  <div class="relative w-full h-full overflow-y-auto">
    <PageHeader :title="$t('sellerAnnualFee.商户年费管理')" v-my-point="'tenantRenewRule:list'">
      <template #right>
        <el-button type="primary" @click="editDiaVisible = true"
          >{{ $t('sellerAnnualFee.年费规则设置') }}</el-button
        >
      </template>
    </PageHeader>
    <el-radio-group v-model="type" class="mb12">
      <el-radio-button :label="$t('sellerAnnualFee.续签缴费记录')" value="1" />
      <el-radio-button :label="$t('sellerAnnualFee.到期未缴纳年费商家')" value="2" />
    </el-radio-group>
    <Table1 :type="type" v-show="type === '1'" />
    <Table2 :type="type" v-show="type === '2'" />
    <EditDia v-model="editDiaVisible" />
  </div>
</template>

<script setup>
import { ref } from "vue";
import Table1 from "./table1.vue";
import Table2 from "./table2.vue";
import EditDia from "./editDia.vue";

const type = ref("1");
const editDiaVisible = ref(false);
</script>

<style lang="scss" scoped></style>
